﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SAM.Framework.Configuration
{
    public interface IRead
    {
        /// <summary>
        /// 读取配置文件
        /// </summary>
        /// <typeparam name="T">配置文件模型</typeparam>
        /// <param name="fileType">文件类型</param>
        /// <returns></returns>
        T Read<T>(FileType fileType);
        /// <summary>
        /// 读取配置文件
        /// </summary>
        /// <typeparam name="T">配置文件模型</typeparam>
        /// <param name="fileName">文件名</param>
        /// <param name="fileType">文件类型</param>
        /// <returns></returns>
        T Read<T>(string fileName, FileType fileType);
    }
}
